CPPC=g++
WARN_OPTS=-Wall
DBG_OPTS=-ggdb
OPTMZ_OPTS=
DIR_OPTS=-I. -I$(MOOS_INC_PATH) -L. -L$(MOOS_LIB_PATH)
COMPILE=$(CPPC) $(DIR_OPTS) $(LNK_OPTS) $(C_OPTS) $(WARN_OPTS) $(DBG_OPTS) $(OPTMZ_OPTS)

all: Control.cpp Control.h main.cpp
	$(COMPILE) Control.cpp Control.h main.cpp -lpthread -lMOOS -lMOOSGen -o Control
clean:
	rm -f *.o *~ Control
run:
	gnome-terminal --geometry=300x20 --title="Control" -x ./Control Control.moos
